package cn.changein.framework.kernel.model.page;

import lombok.Data;

/**
 * <p>
 *     分页查询的请求参数封装
 * </p>
 *

 * @Date: 2020-10-27 11:52
 * @Copyright: companyName
 * @Version 1.0
 * @Since JDK1.8
 */
@Data
public class PageQuery {

    /**
     * 每页的条数
     */
    private Integer pageSize;

    /**
     * 页编码(第几页)
     */
    private Integer pageNo;

    /**
     * 排序方式(asc 或者 desc)
     */
    private String sort;

    /**
     * 排序的字段名称
     */
    private String orderByField;

    public PageQuery() {
    }

    public PageQuery(Integer pageSize, Integer pageNo, String sort, String orderByField) {
        this.pageSize = pageSize;
        this.pageNo = pageNo;
        this.sort = sort;
        this.orderByField = orderByField;
    }
}
